<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>
	<script type="text/javascript">
		// Declaring the function
		function funky() {
			alert("Ouch!!!!");
		}
	</script>

	<form>
		<input type="button" value="Touch Me" onclick="funky()">
	</form>
</body>
</html>